<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python
import time
valtype = ["Integer", "Float", "String"]
?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Plugin list - PyHMon Web Interface</title>
</head>
<body>
    <h2>Node: ${node.name}</h2>
    <table border="1" width="100%">
	<tr>
	<th>Name</th><th>Value type</th><th>Title</th><th>Delay</th><th>Buffered</th><th>Last time</th>
	<th>Edit</th><th>Items></th><th>Graphs</th>
        </tr>
	<tr py:for="p in node.plugins"><td>
	    <font py:attrs="{'color':'grey'} if p.status else {'color':'darkgreen'}"><b>
            <span py:replace="p.name">Name Here.</span>
	    </b></font>
	</td><td>
	    <span py:replace="valtype[p.vtype]">Value type Goes Here</span>
	</td><td>
	    <span py:replace="p.title">Title Goes Here</span>
        </td><td>
	    <span py:replace="p.delay">Delay Goes Here</span>
        </td><td>
	    <span py:replace="str(p.buffered)">Buffered Goes Here</span>
	</td><td>
	    <span py:replace="time.ctime(int(p.lasttime))">Last time Goes Here</span>
	</td><td>
	<form action="plugin" method="post">
	    <input type="hidden" name="nodeid" value="${node.node_id}"/>
	    <input type="hidden" name="plugid" value="${p.plugin_id}" />
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td><td>
	<form action="items" method="post">
	    <input type="hidden" name="plugid" value="${p.plugin_id}" />
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td><td>
	<form action="graph" method="post">
	    <input type="hidden" name="plugid" value="${p.plugin_id}" />
            <input type="submit" name="submit" value="Go!"/>          
        </form>
	</td></tr>
    </table>
</body>
</html>
